]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageList: Check if Message is expanded
authorSymphonySimper <164710-SymphonySimper@users.noreply.gitlab.gnome.org>
Sat, 22 Nov 2025 13:01:05 +0000 (18:31 +0530)
committerSymphonySimper <164710-SymphonySimper@users.noreply.gitlab.gnome.org>
Sat, 22 Nov 2025 13:01:05 +0000 (18:31 +0530)
Check if Message is expanded in expand method, to prevent rerunning the
expand animation when it's already expanded

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3978>

js/ui/messageList.js

index 85fc044d343ffc391039e89dee2b287060d126f4..3a53bb1016b98740d00b9c35759b9a3f612b1640 100644 (file)
@@ -613,6 +613,9 @@ export const Message = GObject.registerClass({
     }
 
     expand(animate) {
+        if (this.expanded)
+            return;
+
         this.expanded = true;
 
         this._actionBin.visible = !!this._actionBin.child;